package cn.huiyunche.base.service.enums;

/**
 * 运单接单类型 10:接单 20:派单
 *
 * @author Administrator
 */
public enum WaybillTypeEnum {
    BIDSELF(10, "接单"),
    ASSIGN(20, "派单");

    private final int value;
    private final String text;

    WaybillTypeEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static WaybillTypeEnum getByValue(int value) {
        for (WaybillTypeEnum temp : WaybillTypeEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
